package com.snut.tomorrowNews.service.back;

import com.snut.tomorrowNews.dao.back.RoleDao;
import com.snut.tomorrowNews.model.Menu;
import com.snut.tomorrowNews.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RoleService {

     @Autowired
     RoleDao roleDao;

     public List<Role> getRoleList(){

        return roleDao.getRoleList();
     }


    public List<Menu> getMenuList() {
         return roleDao.getMenuList();
    }
}
